package com.zhny.spraygun.rtu.plugin.model;

import com.zhny.aiot.plugin.ActionValue;
import com.zhny.aiot.plugin.PropertyValue;
import com.zhny.aiot.plugin.model.*;
import lombok.Data;

@Data
public class SpraygunRTUStoreEntry extends StoreEntity {
    @PropertyValue(alias = "喷枪状态",description = "喷枪状态",unit = "",icon= IconConstract.Other,variableType= VariableType.OpenClose,actions={
            @ActionValue(name= Operate.Open,commandCode="sprayGunOpen",eventType= EventType.Click),
            @ActionValue(name=Operate.Close,commandCode="sprayGunClose",eventType=EventType.Click),
            @ActionValue(name=Operate.Query,commandCode="sprayGunQuery",eventType=EventType.Click)
    })
    private String sprayGunStatus;

    @Override
    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb.append(", sprayGunStatus=").append(this.sprayGunStatus);
        return sb.toString();
    }
}
